* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

button, .btn {
    cursor: pointer;
    background-color: #8CC92D;
    border: none;
    height: 3em;
    width: 7em;
    font-size: 1em;
}

:root{
    --tab-colors: #f0f0f0;
}

.small-screen {
    position: fixed;
    top: 0;
    height: 100vh;
    width: 100vw;
    display: block;
    margin: auto;
    background-color: black;
    text-align: center;
    z-index: 5;
    color: white;
    font-size: 2em;
    display: none;

    .text {
        padding: 50% 0;
    }
}

header.sticky {
    background-color: #162936;

    .logo img {
        height: 3vw;
    }

    ul {
        padding: 1.5vw 0;
    }

    li a {
        color: #8CC92D;
        text-shadow: none;
    }
}

header {
    background-color: #27065342;
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2;

    .logo img {
        height: 11vw;
        transition: 0.7s;
    }

    ul {
        padding: 5vw 0;
        display: flex;
        list-style: none;
        transition: 0.7s;

        li a {
            margin-left: 3vw;
            color: #4752a7;
            font-weight: bold;
            font-size: 1.6em;
            text-shadow: -1.5px 1px 9px #0ad400;
        }
    }

    input,
    label {
        display: none;
        margin-right: 1em;
        cursor: pointer;
        color: white;
    }

    #menu:checked~.menu-box {
        right: 0;
    }
    
    .menu-box {
        height: 100vh;
        width: 100vw;
        background-color: #1d2f3b;
        position: fixed;
        top: 0;
        right: -100vw;
        transition: 0.4s ease;

        .head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: #162936;
            margin-bottom: 5px;

            .logo img {
                margin-top: 2vw;
                height: 5em;
            }

            .material-symbols-outlined {
                font-size: 3em;
                color: white;
            }
        }

        ul {
            padding: 0;
            text-align: center;

            li {
                background-color: #153963;
                margin-bottom: 5px;
                padding: 1.3em 0;
                height: 2.5em;

                a {
                    color: white;
                    font-weight: normal;
                    text-shadow: none;

                }
            }

            li:hover {
                background-color: #334b66;

                a {
                    font-weight: bold;
                }
            }
        }
    }
}

main {
    display: grid;
    gap: 1vw;
    overflow: hidden;

    .fa-rocketchat {
        position: fixed;
        right: 0.5em;
        bottom: 2em;
        background-color: #8CC92D;
        font-size: 2.65em;
        padding: 0.3em;
        border-radius: 10px;
        border: 1px solid white;
        cursor: pointer;
    }

    .chatbox {
        position: fixed;
        right: -100%;
        bottom: 1vw;
        min-height: 30em;
        min-width: 20em;
        background-color: #f0f0f0;
        transition: all 0.4s ease;
        box-shadow: black -8px 6px 20px -10px;
        z-index: 3;

        .top {
            min-height: 4em;
            background-color: #162936;
            color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;

            p {
                margin-left: 1vw;
                line-height: 1.5em;

                .dot {
                    display: inline-block;
                    height: 0.4em;
                    width: 0.4em;
                    border-radius: 5em;
                    margin: 0 0.2em;
                    background-color: #40ff3e;
                }
            }

            .material-symbols-outlined {
                margin-right: 0.4vw;
                color: white;
                font-size: 2em;
                cursor: pointer;
            }
        }

        .textbox input {
            position: absolute;
            bottom: 0;
            width: 85%;
            min-height: 2.5em;
            margin: 1em calc(15% / 2);
            border-radius: 2em;
            padding-left: 10px;
        }
    }

    #click {
        display: none;
    }

    #click:checked~.chatbox {
        right: 0.5em;
    }
}

.ad {
    height: 95vh;
    min-height: 20em;
    width: 100%;
    position: relative;
    justify-self: center;


    button {
        background: transparent;
        border: none;
        position: absolute;
        z-index: 1;
        top: 50%;
        opacity: 30%;

        img{
            height: 5em;
        }
    }
    
    #next {
        right: 0;
    }

    .slide {
        height: 100%;
        width: 100%;
        display: none;
    }
}

.teacher {
    display: grid;
    justify-content: center;

    h3 {
        text-align: center;
        font-size: 3.5em;
        background-color: var(--tab-colors);
        width: 100vw;
        padding: 3vw 0;
    }

    .slider {
        padding: 5vw 0 2vw;
        display: grid;
        justify-self: center;
        grid-auto-flow: column;
        width: 85vw;
        overflow: hidden;
        text-align: center;
        gap: 5vw;

        .box {
            animation: scroll 15s infinite linear;

            label,
            input {
                display: none;
            }
        }

        .box img {
            border: 2px solid #16293665;
            border-radius: 10em;
            height: 10vw;
            width: 10vw;
            overflow: auto;
        }
    }


}

.teacher .slider:hover .box {
    animation-play-state: paused;
}

.teacher .slider .box img {
    transition: all 0.3s ease-in-out;
}

.teacher .slider .box:hover img {
    transform: scale(1.1);
    box-shadow: 0 0 6em rgb(115, 186, 207);
}

.teacher .slider::-webkit-scrollbar {
    display: none;
}

@keyframes scroll {

    0%,
    100% {
        transform: translateX(200%);
    }

    95% {
        transform: translateX(-1400%);
    }
}

.title {
    text-align: center;
    background-color: var(--tab-colors);

    p {
        margin-top: 3vw;
        padding-top: 4vw;
        font-size: 1.1em;
    }

    h3 {
        font-size: 3.2em;
        margin-bottom: 4vw;
    }
}

.details {
    display: grid;
    grid-template-columns: auto auto auto;
    justify-self: center;
    gap: 3vw;
    text-align: center;
    margin: 0 5vw;

    .tile {
        width: 25vw;
        border: 1em solid rgb(63, 135, 228);

        h4 {
            margin-top: 5vw;
            font-size: 1.5em;
        }

        ul {
            text-align: left;
            margin: 2vw 5vw;
            font-size: 1.2em;

            li {
                margin-top: 1em;
            }

            h6 {
                font-size: 1em;
                font-weight: 600;
                text-decoration: underline;
            }
        }
    }

    button {
        margin-top: 2vw;
        margin-bottom: 5vw;
    }
}

.about {
    background-color: var(--tab-colors);
    text-align: center;
    padding: 4vw;

    h3 {
        font-size: 3.5em;
    }

    h6 {
        font-size: 1.5em;
        margin-top: 2vw;
    }

    p {
        text-align: left;
        font-size: 1.2em;
        margin: 5px 12vw;
    }

    button {
        margin-top: 4vw;
    }
}

footer {
    text-align: center;

    .bgc {
        background-color: #162936;

        h3 {
            padding-top: 2vw;
            font-size: 3vw;
            color: #8CC92D;
        }

        .block {
            color: white;
            padding: 1vw 0;
            display: flex;
            justify-content: space-evenly;
            align-items: center;

            .left {
                width: 50%;
                display: grid;
                justify-content: center;
                gap: 5vw;

                .follow {
                    color: rgb(145 162 173);
                    font-size: 1em;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    padding-bottom: 1vw;

                    a {
                        margin-left: 0.5vw;
                    }
                }
            }

            .right {
                width: 50%;
                text-align: left;

                .address {
                    font-size: 1em;
                    line-height: 2em;
                    margin: 2vw 0;
                }

                form {
                    width: 45%;
                    margin: 0 2vw;

                    .imp {
                        color: yellow;
                    }

                    input,
                    select,
                    textarea {
                        margin: 0.5vw 0 1vw 0;
                        padding: 0.4vw;
                        width: 90%;
                        border-radius: 5px;
                        resize: none;
                    }

                    input:hover,
                    textarea:hover {
                        opacity: 60%;
                    }

                    .btn {
                        width: 7em;
                    }
                }
            }
        }
    }

    .copyright {
        text-align: center;
        background-color: black;
        color: white;
        padding: 2vw 0;
    }
}





@media screen and (max-width: 1440px) {
    button, .btn{
        height: 2.3em;
        width: 6em;
    }

    header,
    header.sticky {
        background-color: #162936;
        height: 4em;
        justify-content: space-between;

        .logo img {
            height: 3.5em;
            margin-left: 1em;
        }

        nav {
            display: none;
        }


        label {
            display: block;
        }

        .menu-box {
            ul {
                display: block;
            }
        }
    }

    .ad {
        height: 60vh;
    }

    .teacher {
        h3 {
            font-size: 2.3em;
        }

        .slider {
            .box img {
                height: 9em;
                width: 9em;
            }
        }
    }

    .title {
        p {
            font-size: 1em;
        }

        h3 {
            font-size: 2em;
        }
    }

    .details {
        grid-template-columns: auto;
        gap: 1vw;

        .tile {
            width: 80vw;
            min-height: 25em;

            ul {
                padding: 0 5vw;
            }

            button {
                height: 2.5em;
                width: 6em;
                margin: 10vw 0;
            }
        }
    }

    .about {
        h3 {
            font-size: 2em;
            margin-bottom: 5vw;

        }

        h6 {
            font-size: 1.3em;
            margin: 0 6vw;
        }

        p {
            font-size: 1em;
            margin: 5px 5vw;
        }
    }

    footer {
        .bgc {
            padding: 1.2em 0;

            h3 {
                font-size: 3.2em;
            }

            .block {
                flex-direction: column;
                justify-content: center;

                .left {
                    width: 100%;
                    justify-content: center;
                    gap: 2vw;
                    margin: 3em 0;

                    iframe {
                        width: 100%;
                    }
                }

                .right {
                    width: 90%;

                    p {
                        text-align: center;
                    }

                    form {
                        width: 50%;
                        min-width: 15em;
                        margin: 0 auto;
                    }
                }
            }
        }

        .copyright {
            font-size: 1em;
            padding: 2em 0;
        }
    }
}

@media screen and (max-width: 350px) {
    .small-screen{
        display: block;
    }
    
    header, main, footer{
        display: none;
    }
}